<%= render :partial => 'menu' -%>

<%= error_messages_for :product %>

<% form_for(:product, :html => { :multipart => true }) do |f| %>
  <%= render :partial => 'form', :locals => {:f => f} %>
  <!-- file upload control -->
  Filename: 
  <input type="file" id="product_file" name="product[file]"/><br/>
  <%= submit_tag "Create" %>
<% end %>

<%= link_to 'Back', :action => :index %>